// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import router from './router'
import VueWechatTitle from 'vue-wechat-title'
import $ from 'jquery'
import lrz from 'lrz'
import qs from 'qs'
import axios from './http'
import Alert from '@/common/alert/alert.js'
import Confirm from '@/common/alert/confirm.js'
import Loading from '@/common/loading/loading.js'
import 'babel-polyfill'


if (Number.parseInt ===undefined) Number.parseInt = window.parseInt;

if (Number.parseFloat ===undefined) Number.parseFloat = window.parseFloat;

import identify from './common/identify'
Vue.component('identify', identify)


Vue.config.productionTip = false
Vue.prototype.HOST = '/api'
Vue.use(VueWechatTitle)
Vue.use(ElementUI)
Vue.use(Alert)
Vue.use(Confirm)
Vue.use(Loading)
Vue.prototype.$qs = qs
Vue.prototype.$axios = axios;
Vue.prototype.sensitiveWords = [
												"微信",
												"weixin",
												"威信",
												"WX","wx",
												"扣扣",
												"审图",
												"秋秋",
												"求求","刷单","佣金单","拍A发B","拍a发b","拍A发b","拍a发B","礼品单","'",
												"企鹅","阔阔","微 信","扣 扣","微言","扣","喂兴","tututu",
												"微X","疼训","企  鹅",
											];

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
